package com.zzyl.nursing.mapper;

import java.util.List;

import com.zzyl.nursing.domain.CancelRequest;
import com.zzyl.nursing.domain.DoTask;
import com.zzyl.nursing.domain.NursingTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.vo.NusringTaskIdVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * 护理任务Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-25
 */
@Mapper
public interface NursingTaskMapper extends BaseMapper<NursingTask>
{
    /**
     * 查询护理任务
     *
     * @param id 护理任务主键
     * @return 护理任务
     */
    public NusringTaskIdVo selectNursingTaskById(Long id);

    /**
     * 查询护理任务列表
     * 
     * @param nursingTask 护理任务
     * @return 护理任务集合
     */
    public List<NursingTask> selectNursingTaskList(NursingTask nursingTask);

    /**
     * 修改护理任务的状态为3
     * @param cancelRequest
     * @return
     */
    int cancel(CancelRequest cancelRequest);

    /**
     * 任务执行
     * @param doTask
     * @return
     */
    int updateDo(DoTask doTask);

    /**
     * 修改时间
     * @param doTask
     * @return
     */
    int updateTime(DoTask doTask);

    /**
     * 查询护理项目
     * @param nursingId
     * @return
     */

    String selectNursingName(Long nursingId);

    /**
     * 更新护理任务取消
     * @param nursingTask
     * @return
     */
    int updateNursingTask(NursingTask nursingTask);
}
